
Page({
  data:{
    isClick:true,
    isTwoClick:true,
    isThreeClick:true
  },

  onFirstTap:function(event){
    var isClick = this.data.isClick;
    var isTwoClick = this.data.isTwoClick;
    var isThreeClick = this.data.isThreeClick;
    if(isClick){ //这里
      this.setData({
        isTwoClick:true,
        isThreeClick:true
      })
    }
    this.setData({
      isClick:!isClick
    })

    
  },
  onTwoTap:function(event){
    var clickId = event.currentTarget.dataset.postId
    // console.log(clickId)    
    var isClick = this.data.isClick;
    var isTwoClick = this.data.isTwoClick;
    var isThreeClick = this.data.isThreeClick;
    if(isTwoClick){
      this.setData({
        isClick:true,
        isThreeClick:true
      })
    }
    this.setData({
      isTwoClick:!isTwoClick
    })
  },
  onThreeTap:function(event){
    var clickId = event.currentTarget.dataset.postId
    // console.log(clickId)      
    var isClick = this.data.isClick;
    var isTwoClick = this.data.isTwoClick;
    var isThreeClick = this.data.isThreeClick;
    if(isThreeClick){
      this.setData({
        isTwoClick:true,
        isClick:true
      })
    }
    this.setData({
      isThreeClick:!isThreeClick
    })
  },
})